package java0107;

import java.util.HashMap;
import java.util.Map;

public class Java5 {
    public static void main(String[] args) {

        Map<Integer,String> map = new HashMap<Integer,String>();
        map.put(1,"李奇隆");
        map.put(2,"孙旭");
        map.put(3,"李振扬");
        map.forEach((k,v)->{
            System.out.println(k + "\t" + v);
        });

        Map<Integer,Double> map1 = new HashMap<Integer,Double>();
        map1.put(1,1.0);
        map1.put(2,2.0);
        map1.put(3,3.0);
        map1.forEach((k,v)->{
            System.out.println(k + "\t" + v);
        });

        Map<String,Double> map2 = new HashMap<String,Double>();
        map2.put("1",1.1);
        map2.put("2",2.2);
        map2.put("3",3.3);
        map2.forEach((k,v)->{
            System.out.println(k + "\t" + v);
        });
    }
}
